<!-- sidebar -->
<div class="sidebar">
<ul>
<li>
<div class="line">Site Search</div>
<!--  serach site -->
  <div>
<form action="/s" id="cse-search-box">
  <div>
    <input type="hidden" name="cx" value="{{GOOGLECUSTOMESEID}}" />
    <input type="hidden" name="cof" value="FORID:10" />
    <input type="hidden" name="ie" value="UTF-8" />
    <input type="text" name="q" size="31" />
    <input type="submit" name="sa" value="搜索" />
  </div>
</form>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script>
<script type="text/javascript" src="http://www.google.com/cse/t13n?form=cse-search-box&t13n_langs=zh-Hans"></script>
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=zh-Hans"></script>
  </div>
<!--  serach site -->
</li>
<li>
<div class="line">Tags <a href="/blog/tag"> All tags </a></div>
<!--  tag  -->
{% for tag in tags %}
[<a href="/blog/tag/{{tag.name}}">{{tag.name}}({{tag.num}})</a>] <br/>
{% endfor %}
<!--  tag  -->
</li>
<li>
<!-- index by date -->
<div class="line"> Archieves </div>
{% for m in months %}
<div><a href="/blog/month/{{m}}">{{m}}</a></div>
{% endfor %}
<!-- index by date -->
</li>
<li>
<!-- post -->
<div>
All {{post_num}} Posts
</div>
<div>
<a href="/blog/post">{{message.blog_create}}</a>
</div>
<!-- post -->
</li>
</ul>
<div> {{message.visitnum}}: {{ num_vistor }} {{init_day|date:"F jS, Y"}} </div>
</div>

<!-- sidebar end -->